<?php
/*
    Id:     $Id: $
    File:   ProjectController.php
    Author: John Griffin
    Date:   May 9, 2009

    Description:
*/
require_once 'lib/RESTResource.php';
require_once 'lib/URLToSQL.php';

class ProjectController extends RESTResource {
    private $model = null;
    private $view = null;
    private $filter = null;
    public function __construct (SimpleXMLElement $resource) {
        parent::__construct ($resource);
    }
    
    public function delete (array $ids) {
        $result = $this=>model->delete ($ids);
        $this->resourceDeleted ();
    }
    
    public function get (array $arguments, array $modifiers) {
        $result = $this->model->select ($arguments, $modifiers);
    }
    
    public function post (array $arguments) {
        $result = $this->model->insert ($arguments);
        $this->resourceCreated ();
    }
    
    public function put (array $arguments) {
        $result = $this->model->update ($arguments);
        $this->resourceModified ();
    }
}
?>